package com.kelaite.procurement.dto;

import java.util.Date;

import com.kelaite.procurement.constants.BidTypeEnum;

public class PipelineItemDTO {

	private Long id;

	private PipelineHeaderDTO tPipelineHeader;

	private Integer displayOrderNo; // 只是一个序号

	private String bidDescription;

	private Date openTime;

	private Date closeTime;

	private Date bidOpenTime;

	private Date presentationTime;

	private String docDownload1;

	private String docDownload2;

	private String docDownload3;

	private boolean accept; // Y ： 接受; N: 不接受

	private Integer bidType; // 1、招标 2、授予 3、议标

	private boolean isParticipate; // true 参加， false 不参加（默认）(乙方决定是否参加)

	private Date gmtCreateTime;

	private Date gmtUpdateTime;

	private String createdBy;

	private String updatedBy;

	private boolean isDelete;

	private CompanyDTO companyId1;

	private CompanyDTO companyId2;

	private CompanyDTO companyId3;

	private String contactUser;

	private String contactPhone;

	private String contactEmail;

	// /////////////////////////
	private String bidTypeStr;

	public PipelineItemDTO() {
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public PipelineHeaderDTO gettPipelineHeader() {
		return tPipelineHeader;
	}

	public void settPipelineHeader(PipelineHeaderDTO tPipelineHeader) {
		this.tPipelineHeader = tPipelineHeader;
	}

	public Integer getDisplayOrderNo() {
		return displayOrderNo;
	}

	public void setDisplayOrderNo(Integer displayOrderNo) {
		this.displayOrderNo = displayOrderNo;
	}

	public String getBidDescription() {
		return bidDescription;
	}

	public void setBidDescription(String bidDescription) {
		this.bidDescription = bidDescription;
	}

	public Date getOpenTime() {
		return openTime;
	}

	public void setOpenTime(Date openTime) {
		this.openTime = openTime;
	}

	public Date getCloseTime() {
		return closeTime;
	}

	public void setCloseTime(Date closeTime) {
		this.closeTime = closeTime;
	}

	public Date getBidOpenTime() {
		return bidOpenTime;
	}

	public void setBidOpenTime(Date bidOpenTime) {
		this.bidOpenTime = bidOpenTime;
	}

	public Date getPresentationTime() {
		return presentationTime;
	}

	public void setPresentationTime(Date presentationTime) {
		this.presentationTime = presentationTime;
	}

	public String getDocDownload1() {
		return docDownload1;
	}

	public void setDocDownload1(String docDownload1) {
		this.docDownload1 = docDownload1;
	}

	public String getDocDownload2() {
		return docDownload2;
	}

	public void setDocDownload2(String docDownload2) {
		this.docDownload2 = docDownload2;
	}

	public String getDocDownload3() {
		return docDownload3;
	}

	public void setDocDownload3(String docDownload3) {
		this.docDownload3 = docDownload3;
	}

	public boolean isAccept() {
		return accept;
	}

	public void setAccept(boolean accept) {
		this.accept = accept;
	}

	public Integer getBidType() {
		return bidType;
	}

	public void setBidType(Integer bidType) {
		this.bidType = bidType;
	}

	public boolean isParticipate() {
		return isParticipate;
	}

	public void setParticipate(boolean isParticipate) {
		this.isParticipate = isParticipate;
	}

	public Date getGmtCreateTime() {
		return gmtCreateTime;
	}

	public void setGmtCreateTime(Date gmtCreateTime) {
		this.gmtCreateTime = gmtCreateTime;
	}

	public Date getGmtUpdateTime() {
		return gmtUpdateTime;
	}

	public void setGmtUpdateTime(Date gmtUpdateTime) {
		this.gmtUpdateTime = gmtUpdateTime;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public boolean isDelete() {
		return isDelete;
	}

	public void setDelete(boolean isDelete) {
		this.isDelete = isDelete;
	}

	public CompanyDTO geCompanyDTOId1() {
		return companyId1;
	}

	public void seCompanyDTOId1(CompanyDTO companyId1) {
		this.companyId1 = companyId1;
	}

	public CompanyDTO geCompanyDTOId2() {
		return companyId2;
	}

	public void seCompanyDTOId2(CompanyDTO companyId2) {
		this.companyId2 = companyId2;
	}

	public CompanyDTO geCompanyDTOId3() {
		return companyId3;
	}

	public void seCompanyDTOId3(CompanyDTO companyId3) {
		this.companyId3 = companyId3;
	}

	public String getContactUser() {
		return contactUser;
	}

	public void setContactUser(String contactUser) {
		this.contactUser = contactUser;
	}

	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public String getContactEmail() {
		return contactEmail;
	}

	public void setContactEmail(String contactEmail) {
		this.contactEmail = contactEmail;
	}

	public CompanyDTO getCompanyId1() {
		return companyId1;
	}

	public void setCompanyId1(CompanyDTO companyId1) {
		this.companyId1 = companyId1;
	}

	public CompanyDTO getCompanyId2() {
		return companyId2;
	}

	public void setCompanyId2(CompanyDTO companyId2) {
		this.companyId2 = companyId2;
	}

	public CompanyDTO getCompanyId3() {
		return companyId3;
	}

	public void setCompanyId3(CompanyDTO companyId3) {
		this.companyId3 = companyId3;
	}

	public String getBidTypeStr() {
		bidTypeStr = BidTypeEnum.transFromVal(this.getBidType()).getDesc();
		return bidTypeStr;
	}

	public void setBidTypeStr(String bidTypeStr) {
		this.bidTypeStr = bidTypeStr;
	}

	@Override
	public String toString() {
		return "PipelineItemDTO [id=" + id + ", tPipelineHeader="
				+ tPipelineHeader + ", displayOrderNo=" + displayOrderNo
				+ ", bidDescription=" + bidDescription + ", openTime="
				+ openTime + ", closeTime=" + closeTime + ", bidOpenTime="
				+ bidOpenTime + ", presentationTime=" + presentationTime
				+ ", docDownload1=" + docDownload1 + ", docDownload2="
				+ docDownload2 + ", docDownload3=" + docDownload3 + ", accept="
				+ accept + ", bidType=" + bidType + ", isParticipate="
				+ isParticipate + ", gmtCreateTime=" + gmtCreateTime
				+ ", gmtUpdateTime=" + gmtUpdateTime + ", createdBy="
				+ createdBy + ", updatedBy=" + updatedBy + ", isDelete="
				+ isDelete + ", companyId1=" + companyId1 + ", companyId2="
				+ companyId2 + ", companyId3=" + companyId3 + ", contactUser="
				+ contactUser + ", contactPhone=" + contactPhone
				+ ", contactEmail=" + contactEmail + ", bidTypeStr="
				+ bidTypeStr + "]";
	}
}
